projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f865ee
)
Require subr-x at compile time ()
author
Alex Branham
<alex.branham@gmail.com>
Tue, 30 Oct 2018 21:59:05 +0000
(16:59 -0500)
committer
João Távora
<joaotavora@gmail.com>
Tue, 30 Oct 2018 21:59:05 +0000
(21:59 +0000)
if-let and when-let are macros that the byte compiler can expand
at compile time. No need to require subr-x at run time.
* eglot.el (subr-x): Require only when compiling.
GitHub-reference: https://github.com/joaotavora/eglot/issues/139
lisp/progmodes/eglot.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/eglot.el
b/lisp/progmodes/eglot.el
index 297d6f4f0ea499271e36c1cf400aeef5a2b0c609..a234e17c0b1297ca32ad55ec8717b1d3ac57e361 100644
(file)
--- a/
lisp/progmodes/eglot.el
+++ b/
lisp/progmodes/eglot.el
@@
-65,7
+65,8
@@
(require 'warnings)
(require 'flymake)
(require 'xref)
-(require 'subr-x)
+(eval-when-compile
+ (require 'subr-x))
(require 'jsonrpc)
(require 'filenotify)
(require 'ert)